<!--
 * @Author: szx
 * @Date: 2022-06-06 17:23:01
 * @LastEditTime: 2022-06-06 18:47:43
 * @Description: 
 * @FilePath: \learn\HTML\登录界面\猫头鹰不偷看登录界面\index.html
-->
<!DOCTYPE html>
<html lang="zh-CN">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>猫头鹰不偷看登录界面</title>
    <link rel="stylesheet" href="index.css">

</head>

<body>
    <div class="login-box">
        <div class="owl" id="owl">
            <div class="hand"></div>
            <div class="hand hand-r"></div>
            <div class="arms">
                <div class="arm"></div>
                <div class="arm arm-r"></div>
            </div>
        </div>
        <div class="input-box">
            <input type="text" placeholder="账号">
            <input type="password" placeholder="密码" id="password" onfocus="isFocus()" onblur="isBlur()">
            <button>登录</button>
        </div>
    </div>


    <script>
        const owl = document.querySelector('#owl')

        const password = document.getElementById('password')

        const isFocus = () => {
            owl.classList.add('password')
        }
        const isBlur = () => {
            owl.classList.remove('password')
        }
    </script>
</body>

</html>